-
Notifications
You must be signed in to change notification settings - Fork 648
add default link local route to fix ndp inside vrf issue #3973
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Baorong Liu <[email protected]>
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Signed-off-by: Baorong Liu <[email protected]>
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
orchagent/vrforch.cpp
Outdated
| vrf_table_[vrf_name].ref_count = 0; | ||
| vrf_id_table_[router_id] = vrf_name; | ||
| gFlowCounterRouteOrch->onAddVR(router_id); | ||
| if (gRouteOrch != nullptr) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this check is redundant. Please remove. As you see on line above, there is no check on gFlowCounterRouteOrch
orchagent/vrforch.cpp
Outdated
|
|
||
| sai_object_id_t router_id = vrf_table_[vrf_name].vrf_id; | ||
| // Delete link-local routes before removing VRF | ||
| if (gRouteOrch != nullptr) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment
Signed-off-by: Baorong Liu <[email protected]>
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
What I did
Add default IPv6 link local route to fix ipv6 ndp issue inside VRF
Why I did it
When a VRF is created, all the assigned IP addresses are removed and a new link local address is regenerated in Linux kernel but SWSS does not add a route for link local fe80::/10.
Linux sends NS packet with link local addresses and peer reply NA packet also uses link local address caused the NA packet be dropped and the ndp cannot be updated.
How I verified it
Built test image with the fix and verified it in a SONiC router. The system can process replied NA packet with link local dst IP address to that VRF.
Details if related